import java.io.*;
import java.util.ArrayList;

public class AddressReader
{
    public static ArrayList<String> readList(String filename)
    {
        ArrayList<String> result = new ArrayList<String>();
        try
        {
            BufferedReader reader = new BufferedReader(new FileReader(new File("email/"+filename)));
            String read = "";
            do
            {
                read = reader.readLine();
                if(read != null)
                    result.add(read);
            }
            while (read != null);
        }
        catch (Exception e)
        {
            e.printStackTrace();
            return new ArrayList<String>();
        }
        return result;
    }
}